<?php
class DummyCollection implements Countable, SeekableIterator {
  protected $index = 0;
  protected $data;
  protected $sort_by;
  function __construct($sort_by = null, $direction = true) {
    $this->sort_by = $sort_by;
    // Get your own at http://www.fosterburgess.com/v2/random.php
    $this->data = array(
      array(
        'first' => 'Marian',
        'last' => 'Hazel',
        'house' => '2387',
        'street' => 'Ranch Blvd',
        'city' => 'Deerfield',
        'state' => 'MI',
        'zip' => '49238',
        'phone' => '805-490-0177',
        'fax' => '805-462-3006',
        'mobile' => '805-959-1823',
        'ssn' => '666-12-2643',
        'birthday' => '1974-03-06',
        'hiredate' => '1995-04-13',
        'email' => 'mhazel@pon.com',
      ),
      array(
        'first' => 'Cherie',
        'last' => 'Callaghan',
        'house' => '4400',
        'street' => 'Regent Street',
        'city' => 'Varnado',
        'state' => 'LA',
        'zip' => '70467',
        'phone' => '406-782-5980',
        'fax' => '406-339-0008',
        'mobile' => '406-270-6877',
        'ssn' => '493-15-9771',
        'birthday' => '1968-12-09',
        'hiredate' => '1998-08-26',
        'email' => 'ccallaghan@fo.info',
      ),
      array(
        'first' => 'Donny',
        'last' => 'Ridout',
        'house' => '954',
        'street' => 'Astorwood',
        'city' => 'Green Valley',
        'state' => 'AZ',
        'zip' => '85614',
        'phone' => '959-301-7508',
        'fax' => '959-234-4122',
        'mobile' => '959-851-7850',
        'ssn' => '950-25-1627',
        'birthday' => '1951-12-14',
        'hiredate' => '1994-07-19',
        'email' => 'dridout@herja.org',
      ),
      array(
        'first' => 'Angelia',
        'last' => 'Cecere',
        'house' => '9250',
        'street' => 'Glenway Cove',
        'city' => 'Virginia Beach',
        'state' => 'VA',
        'zip' => '23453',
        'phone' => '730-343-0047',
        'fax' => '730-512-8163',
        'mobile' => '730-825-3162',
        'ssn' => '865-99-2577',
        'birthday' => '1977-08-09',
        'hiredate' => '1999-04-11',
        'email' => 'acecere@akewesdrein.biz',
      ),
      array(
        'first' => 'Lars',
        'last' => 'Cuthbert',
        'house' => '3406',
        'street' => 'Ogden',
        'city' => 'Buffalo Grove',
        'state' => 'IL',
        'zip' => '60089',
        'phone' => '297-696-8854',
        'fax' => '297-544-3641',
        'mobile' => '297-952-3435',
        'ssn' => '133-67-8385',
        'birthday' => '1982-11-15',
        'hiredate' => '1994-01-20',
        'email' => 'lcuthbert@gearn.com',
      ),
      array(
        'first' => 'Ladonna',
        'last' => 'Helm',
        'house' => '6514',
        'street' => 'Cove',
        'city' => 'Ness City',
        'state' => 'KS',
        'zip' => '67560',
        'phone' => '893-547-2948',
        'fax' => '893-540-6692',
        'mobile' => '893-471-9793',
        'ssn' => '599-45-0351',
        'birthday' => '1971-10-07',
        'hiredate' => '1990-09-26',
        'email' => 'lhelm@criikeorarm.com',
      ),
      array(
        'first' => 'Lindy',
        'last' => 'Krauss',
        'house' => '2043',
        'street' => 'First Place',
        'city' => 'Lamont',
        'state' => 'CA',
        'zip' => '93241',
        'phone' => '570-781-9478',
        'fax' => '570-797-8099',
        'mobile' => '570-457-2589',
        'ssn' => '136-11-6279',
        'birthday' => '1933-11-16',
        'hiredate' => '2005-12-10',
        'email' => 'lkrauss@rotesme.com',
      ),
      array(
        'first' => 'Benjamin',
        'last' => 'Dykes',
        'house' => '6675',
        'street' => 'Bemis Alley',
        'city' => 'Sharon Springs',
        'state' => 'KS',
        'zip' => '67758',
        'phone' => '809-762-0153',
        'fax' => '809-931-1519',
        'mobile' => '809-432-3569',
        'ssn' => '897-53-2878',
        'birthday' => '1978-03-13',
        'hiredate' => '2006-01-19',
        'email' => 'bdykes@posu.com',
      ),
      array(
        'first' => 'Rudolph',
        'last' => 'Worth',
        'house' => '9058',
        'street' => 'Strathmore Mews',
        'city' => 'Albert',
        'state' => 'KS',
        'zip' => '67511',
        'phone' => '844-912-3034',
        'fax' => '844-792-8208',
        'mobile' => '844-788-4539',
        'ssn' => '711-38-6283',
        'birthday' => '1941-12-09',
        'hiredate' => '1997-07-21',
        'email' => 'rworth@rekim.edu',
      ),
      array(
        'first' => 'Mackenzie',
        'last' => 'Geoghegan',
        'house' => '3504',
        'street' => 'Vincent',
        'city' => 'Sammamish',
        'state' => 'WA',
        'zip' => '98075',
        'phone' => '435-371-0917',
        'fax' => '435-637-0020',
        'mobile' => '435-974-1650',
        'ssn' => '402-54-7532',
        'birthday' => '1963-09-09',
        'hiredate' => '1993-02-18',
        'email' => 'mgeoghegan@fogeja.org',
      ),
      array(
        'first' => 'Jennifer',
        'last' => 'Hanlon',
        'house' => '7261',
        'street' => 'Harris',
        'city' => 'Charleston',
        'state' => 'WV',
        'zip' => '25364',
        'phone' => '271-397-8853',
        'fax' => '271-943-8164',
        'mobile' => '271-962-1237',
        'ssn' => '222-53-0872',
        'birthday' => '1984-04-06',
        'hiredate' => '1996-02-11',
        'email' => 'jhanlon@herjafoky.com',
      ),
      array(
        'first' => 'Natalia',
        'last' => 'Guerrier',
        'house' => '2752',
        'street' => 'Millbrook Way',
        'city' => 'Los Altos',
        'state' => 'CA',
        'zip' => '94023',
        'phone' => '640-494-8398',
        'fax' => '640-627-0336',
        'mobile' => '640-204-4999',
        'ssn' => '201-15-1561',
        'birthday' => '1980-05-22',
        'hiredate' => '1992-08-04',
        'email' => 'nguerrier@rearnsiake.info',
      ),
      array(
        'first' => 'Georgina',
        'last' => 'Tung',
        'house' => '4768',
        'street' => 'Wickford Alley',
        'city' => 'Grant',
        'state' => 'OK',
        'zip' => '74738',
        'phone' => '885-292-8856',
        'fax' => '885-359-1230',
        'mobile' => '885-866-0581',
        'ssn' => '547-79-5939',
        'birthday' => '1932-02-16',
        'hiredate' => '1991-06-04',
        'email' => 'gtung@on.org',
      ),
      array(
        'first' => 'Allan',
        'last' => 'Ogara',
        'house' => '2780',
        'street' => 'Mada',
        'city' => 'Savannah',
        'state' => 'GA',
        'zip' => '31406',
        'phone' => '443-390-0995',
        'fax' => '443-557-6680',
        'mobile' => '443-626-1476',
        'ssn' => '952-79-5753',
        'birthday' => '1976-09-06',
        'hiredate' => '2003-08-24',
        'email' => 'aogara@redre.biz',
      ),
      array(
        'first' => 'Garret',
        'last' => 'Maki',
        'house' => '9020',
        'street' => 'Brush Mews',
        'city' => 'Grand Marsh',
        'state' => 'WI',
        'zip' => '53936',
        'phone' => '449-482-1751',
        'fax' => '449-434-6732',
        'mobile' => '449-544-6425',
        'ssn' => '564-28-1452',
        'birthday' => '1955-07-14',
        'hiredate' => '2002-12-09',
        'email' => 'gmaki@weakemein.com',
      ),
      array(
        'first' => 'Delia',
        'last' => 'Innocent',
        'house' => '7845',
        'street' => 'Cottage Drive',
        'city' => 'Fpo',
        'state' => 'AP',
        'zip' => '96322',
        'phone' => '268-415-5121',
        'fax' => '268-670-5310',
        'mobile' => '268-679-8514',
        'ssn' => '439-55-2141',
        'birthday' => '1988-08-10',
        'hiredate' => '2003-07-23',
        'email' => 'dinnocent@kyakefeae.net',
      ),
      array(
        'first' => 'Preston',
        'last' => 'Loveless',
        'house' => '6002',
        'street' => 'Bondale Way',
        'city' => 'Fort Lauderdale',
        'state' => 'FL',
        'zip' => '33359',
        'phone' => '833-565-4625',
        'fax' => '833-555-1898',
        'mobile' => '833-375-7964',
        'ssn' => '848-26-7977',
        'birthday' => '1936-06-15',
        'hiredate' => '1992-12-06',
        'email' => 'ploveless@glecu.gov',
      ),
      array(
        'first' => 'Erika',
        'last' => 'Heenan',
        'house' => '8514',
        'street' => 'Blount',
        'city' => 'El Paso',
        'state' => 'TX',
        'zip' => '79983',
        'phone' => '582-831-5657',
        'fax' => '582-871-4607',
        'mobile' => '582-561-5376',
        'ssn' => '636-96-0087',
        'birthday' => '1967-04-14',
        'hiredate' => '1997-03-07',
        'email' => 'eheenan@ing.com',
      ),
      array(
        'first' => 'Florence',
        'last' => 'Ketterman',
        'house' => '3339',
        'street' => 'Morgan',
        'city' => 'Lawton',
        'state' => 'OK',
        'zip' => '73502',
        'phone' => '830-750-4221',
        'fax' => '830-408-8127',
        'mobile' => '830-307-2742',
        'ssn' => '101-35-2848',
        'birthday' => '1976-09-08',
        'hiredate' => '1993-10-14',
        'email' => 'fketterman@roonsi.com',
      ),
      array(
        'first' => 'Trever',
        'last' => 'Luciano',
        'house' => '6150',
        'street' => 'Fort Lane',
        'city' => 'Tonasket',
        'state' => 'WA',
        'zip' => '98855',
        'phone' => '922-903-3798',
        'fax' => '922-584-4328',
        'mobile' => '922-628-6780',
        'ssn' => '531-89-7536',
        'birthday' => '1979-08-28',
        'hiredate' => '1998-12-19',
        'email' => 'tluciano@bearm.com',
      ),
      array(
        'first' => 'Maribel',
        'last' => 'Macrae',
        'house' => '1315',
        'street' => 'Pinklon Square',
        'city' => 'Lake Orion',
        'state' => 'MI',
        'zip' => '48360',
        'phone' => '495-620-1881',
        'fax' => '495-664-8535',
        'mobile' => '495-471-3858',
        'ssn' => '809-19-8079',
        'birthday' => '1942-09-08',
        'hiredate' => '2005-12-27',
        'email' => 'mmacrae@armcening.org',
      ),
      array(
        'first' => 'Julie',
        'last' => 'Bays',
        'house' => '6026',
        'street' => 'Monteray',
        'city' => 'Boncarbo',
        'state' => 'CO',
        'zip' => '81024',
        'phone' => '826-780-9757',
        'fax' => '826-478-6420',
        'mobile' => '826-334-9005',
        'ssn' => '860-44-7247',
        'birthday' => '1967-06-27',
        'hiredate' => '2006-06-03',
        'email' => 'jbays@sikimli.org',
      ),
      array(
        'first' => 'Deric',
        'last' => 'Nunn',
        'house' => '7516',
        'street' => 'Ranch',
        'city' => 'Salem',
        'state' => 'OR',
        'zip' => '97309',
        'phone' => '523-968-1412',
        'fax' => '523-664-6656',
        'mobile' => '523-317-7548',
        'ssn' => '480-03-2099',
        'birthday' => '1943-04-16',
        'hiredate' => '1992-08-18',
        'email' => 'dnunn@drebe.info',
      ),
      array(
        'first' => 'Denver',
        'last' => 'Nakamura',
        'house' => '3518',
        'street' => 'Moreland Drive',
        'city' => 'Trumbull',
        'state' => 'NE',
        'zip' => '68980',
        'phone' => '589-201-9837',
        'fax' => '589-341-0172',
        'mobile' => '589-447-7344',
        'ssn' => '561-73-3686',
        'birthday' => '1974-07-18',
        'hiredate' => '2005-03-05',
        'email' => 'dnakamura@eukimponin.com',
      ),
      array(
        'first' => 'Harvey',
        'last' => 'Lovern',
        'house' => '308',
        'street' => 'Campau Loop',
        'city' => 'Nenzel',
        'state' => 'NE',
        'zip' => '69219',
        'phone' => '308-554-6524',
        'fax' => '308-420-7708',
        'mobile' => '308-465-6525',
        'ssn' => '325-94-2765',
        'birthday' => '1938-03-19',
        'hiredate' => '1996-07-17',
        'email' => 'hlovern@poon.com',
      ),
      array(
        'first' => 'Alycia',
        'last' => 'Mccaughey',
        'house' => '6418',
        'street' => 'Main Gardens',
        'city' => 'Madison Lake',
        'state' => 'MN',
        'zip' => '56063',
        'phone' => '255-416-9586',
        'fax' => '255-492-3100',
        'mobile' => '255-591-0524',
        'ssn' => '116-84-3950',
        'birthday' => '1936-05-02',
        'hiredate' => '1990-12-09',
        'email' => 'amccaughey@teson.com',
      ),
      array(
        'first' => 'Ryan',
        'last' => 'Banda',
        'house' => '9802',
        'street' => 'Springwater Square',
        'city' => 'Atlantic Beach',
        'state' => 'FL',
        'zip' => '32233',
        'phone' => '297-762-4297',
        'fax' => '297-950-9419',
        'mobile' => '297-420-2946',
        'ssn' => '363-33-1588',
        'birthday' => '1981-07-04',
        'hiredate' => '1995-01-18',
        'email' => 'rbanda@gein.biz',
      ),
      array(
        'first' => 'Gerardo',
        'last' => 'Groff',
        'house' => '233',
        'street' => 'Millbrook',
        'city' => 'Trementina',
        'state' => 'NM',
        'zip' => '88439',
        'phone' => '720-565-0159',
        'fax' => '720-917-0757',
        'mobile' => '720-479-2960',
        'ssn' => '154-19-1557',
        'birthday' => '1962-05-02',
        'hiredate' => '2002-05-02',
        'email' => 'ggroff@fecurfi.com',
      ),
      array(
        'first' => 'Robbie',
        'last' => 'Conte',
        'house' => '7429',
        'street' => 'Macomb Blvd',
        'city' => 'Marbury',
        'state' => 'MD',
        'zip' => '20658',
        'phone' => '630-925-5750',
        'fax' => '630-477-9017',
        'mobile' => '630-614-0983',
        'ssn' => '129-95-8635',
        'birthday' => '1967-03-20',
        'hiredate' => '2006-04-06',
        'email' => 'rconte@siliweab.com',
      ),
      array(
        'first' => 'Jamaal',
        'last' => 'Kerry',
        'house' => '5863',
        'street' => 'Squirrel',
        'city' => 'Grant',
        'state' => 'FL',
        'zip' => '32949',
        'phone' => '806-219-3381',
        'fax' => '806-418-3074',
        'mobile' => '806-942-8711',
        'ssn' => '209-24-5833',
        'birthday' => '1952-02-03',
        'hiredate' => '1996-03-10',
        'email' => 'jkerry@bl.info',
      ),
      array(
        'first' => 'Lucas',
        'last' => 'Deshong',
        'house' => '5944',
        'street' => 'Terra Bella Road',
        'city' => 'Lowndes',
        'state' => 'MO',
        'zip' => '63951',
        'phone' => '609-869-3222',
        'fax' => '609-808-6986',
        'mobile' => '609-599-0157',
        'ssn' => '987-45-8360',
        'birthday' => '1934-04-09',
        'hiredate' => '1999-03-22',
        'email' => 'ldeshong@gefi.biz',
      ),
      array(
        'first' => 'Katina',
        'last' => 'Eisen',
        'house' => '3432',
        'street' => 'Springwater Place',
        'city' => 'Clementon',
        'state' => 'NJ',
        'zip' => '08021',
        'phone' => '526-690-0253',
        'fax' => '526-978-4852',
        'mobile' => '526-920-3300',
        'ssn' => '867-71-9066',
        'birthday' => '1961-07-01',
        'hiredate' => '2005-01-24',
        'email' => 'keisen@pon.com',
      ),
      array(
        'first' => 'Nicki',
        'last' => 'Papineau',
        'house' => '2738',
        'street' => 'Iverness Street',
        'city' => 'Winnebago',
        'state' => 'WI',
        'zip' => '54985',
        'phone' => '785-799-5511',
        'fax' => '785-426-1266',
        'mobile' => '785-436-7257',
        'ssn' => '174-83-0452',
        'birthday' => '1933-01-17',
        'hiredate' => '1991-09-07',
        'email' => 'npapineau@absaky.com',
      ),
      array(
        'first' => 'Corinne',
        'last' => 'Levins',
        'house' => '483',
        'street' => 'Griswold Blvd',
        'city' => 'Trumbauersville',
        'state' => 'PA',
        'zip' => '18970',
        'phone' => '811-448-5857',
        'fax' => '811-649-6233',
        'mobile' => '811-400-1458',
        'ssn' => '338-86-8630',
        'birthday' => '1976-02-14',
        'hiredate' => '2003-05-04',
        'email' => 'clevins@sikyeu.com',
      ),
      array(
        'first' => 'Pauline',
        'last' => 'Yerkes',
        'house' => '5342',
        'street' => 'Dalice',
        'city' => 'Belvidere',
        'state' => 'NC',
        'zip' => '27919',
        'phone' => '880-914-7012',
        'fax' => '880-496-1501',
        'mobile' => '880-305-8023',
        'ssn' => '112-19-3959',
        'birthday' => '1966-02-01',
        'hiredate' => '2005-10-24',
        'email' => 'pyerkes@orfiike.com',
      ),
      array(
        'first' => 'Rolando',
        'last' => 'Gigliotti',
        'house' => '6709',
        'street' => 'Tarboro',
        'city' => 'Blairstown',
        'state' => 'MO',
        'zip' => '64726',
        'phone' => '530-970-2374',
        'fax' => '530-496-6664',
        'mobile' => '530-705-0398',
        'ssn' => '946-57-7874',
        'birthday' => '1985-03-12',
        'hiredate' => '2001-09-10',
        'email' => 'rgigliotti@fobe.com',
      ),
      array(
        'first' => 'Russell',
        'last' => 'Usher',
        'house' => '909',
        'street' => 'Stockwell Court',
        'city' => 'Foresthill',
        'state' => 'CA',
        'zip' => '95631',
        'phone' => '722-310-3110',
        'fax' => '722-972-7125',
        'mobile' => '722-272-5506',
        'ssn' => '284-25-0535',
        'birthday' => '1928-10-21',
        'hiredate' => '1999-04-06',
        'email' => 'rusher@eu.edu',
      ),
      array(
        'first' => 'Robin',
        'last' => 'Meng',
        'house' => '1201',
        'street' => 'Gladstone',
        'city' => 'La Grange',
        'state' => 'TX',
        'zip' => '78945',
        'phone' => '471-519-5787',
        'fax' => '471-573-3792',
        'mobile' => '471-866-1088',
        'ssn' => '622-29-3435',
        'birthday' => '1955-01-04',
        'hiredate' => '1993-01-02',
        'email' => 'rmeng@jun.com',
      ),
      array(
        'first' => 'Bridgett',
        'last' => 'Bourque',
        'house' => '889',
        'street' => 'Cass',
        'city' => 'Seeley Lake',
        'state' => 'MT',
        'zip' => '59868',
        'phone' => '476-342-8276',
        'fax' => '476-931-9694',
        'mobile' => '476-516-2861',
        'ssn' => '989-97-2479',
        'birthday' => '1962-12-11',
        'hiredate' => '1993-09-16',
        'email' => 'bbourque@ingiteor.com',
      ),
      array(
        'first' => 'Kenya',
        'last' => 'Nemeth',
        'house' => '2462',
        'street' => 'Indian Trail',
        'city' => 'Troy',
        'state' => 'NC',
        'zip' => '27371',
        'phone' => '591-381-4865',
        'fax' => '591-692-3237',
        'mobile' => '591-613-3071',
        'ssn' => '383-20-4741',
        'birthday' => '1936-12-12',
        'hiredate' => '2005-09-11',
        'email' => 'knemeth@atepodrre.edu',
      ),
      array(
        'first' => 'Bridgette',
        'last' => 'Seaman',
        'house' => '772',
        'street' => 'Bloomfield',
        'city' => 'Seal Harbor',
        'state' => 'ME',
        'zip' => '04675',
        'phone' => '943-955-7222',
        'fax' => '943-219-9782',
        'mobile' => '943-558-4044',
        'ssn' => '935-56-4989',
        'birthday' => '1945-04-25',
        'hiredate' => '2006-12-02',
        'email' => 'bseaman@be.com',
      ),
      array(
        'first' => 'Geneva',
        'last' => 'Alcorn',
        'house' => '7372',
        'street' => 'Washington',
        'city' => 'Hillpoint',
        'state' => 'WI',
        'zip' => '53937',
        'phone' => '401-335-7849',
        'fax' => '401-405-5915',
        'mobile' => '401-561-0388',
        'ssn' => '726-97-5193',
        'birthday' => '1929-11-01',
        'hiredate' => '2006-12-14',
        'email' => 'galcorn@gecurlibe.com',
      ),
      array(
        'first' => 'Roberto',
        'last' => 'Cobble',
        'house' => '7991',
        'street' => 'Chestnut Blvd',
        'city' => 'Afton',
        'state' => 'VA',
        'zip' => '22920',
        'phone' => '248-951-2988',
        'fax' => '248-394-1964',
        'mobile' => '248-459-4532',
        'ssn' => '865-29-2333',
        'birthday' => '1936-05-11',
        'hiredate' => '1997-02-10',
        'email' => 'rcobble@tesdrurncro.biz',
      ),
      array(
        'first' => 'Ralph',
        'last' => 'Keltner',
        'house' => '5731',
        'street' => 'Cedardale',
        'city' => 'Elkton',
        'state' => 'MD',
        'zip' => '21922',
        'phone' => '893-305-6810',
        'fax' => '893-698-3821',
        'mobile' => '893-333-4309',
        'ssn' => '265-52-5726',
        'birthday' => '1974-12-12',
        'hiredate' => '1998-10-03',
        'email' => 'rkeltner@geite.gov',
      ),
      array(
        'first' => 'Bobbie',
        'last' => 'Headrick',
        'house' => '6717',
        'street' => 'Mays',
        'city' => 'New Hyde Park',
        'state' => 'NY',
        'zip' => '11042',
        'phone' => '291-899-4211',
        'fax' => '291-959-4144',
        'mobile' => '291-703-1610',
        'ssn' => '322-87-3951',
        'birthday' => '1926-07-24',
        'hiredate' => '1992-10-01',
        'email' => 'bheadrick@bl.net',
      ),
      array(
        'first' => 'Dominic',
        'last' => 'Degnan',
        'house' => '5792',
        'street' => 'Alderly Alley',
        'city' => 'Dayton',
        'state' => 'OH',
        'zip' => '45423',
        'phone' => '780-922-9927',
        'fax' => '780-579-5768',
        'mobile' => '780-246-1375',
        'ssn' => '855-93-9703',
        'birthday' => '1949-01-22',
        'hiredate' => '1994-06-12',
        'email' => 'ddegnan@euwedr.gov',
      ),
      array(
        'first' => 'Angelia',
        'last' => 'Gayle',
        'house' => '7136',
        'street' => 'Oakleigh Way',
        'city' => 'Russell',
        'state' => 'MN',
        'zip' => '56169',
        'phone' => '245-960-4766',
        'fax' => '245-799-0402',
        'mobile' => '245-821-0914',
        'ssn' => '425-42-0482',
        'birthday' => '1951-12-20',
        'hiredate' => '1995-03-27',
        'email' => 'agayle@fo.com',
      ),
      array(
        'first' => 'Bettina',
        'last' => 'Frantz',
        'house' => '4838',
        'street' => 'Ranch',
        'city' => 'Isabel',
        'state' => 'KS',
        'zip' => '67065',
        'phone' => '629-366-6884',
        'fax' => '629-375-0145',
        'mobile' => '629-711-1731',
        'ssn' => '913-28-9190',
        'birthday' => '1943-03-15',
        'hiredate' => '1991-10-21',
        'email' => 'bfrantz@armorsa.com',
      ),
      array(
        'first' => 'Vito',
        'last' => 'Ulrich',
        'house' => '1796',
        'street' => 'Clark',
        'city' => 'Colorado Springs',
        'state' => 'CO',
        'zip' => '80916',
        'phone' => '898-270-4330',
        'fax' => '898-893-6823',
        'mobile' => '898-348-2702',
        'ssn' => '274-27-9639',
        'birthday' => '1983-08-07',
        'hiredate' => '1990-09-05',
        'email' => 'vulrich@kyme.info',
      ),
      array(
        'first' => 'Andy',
        'last' => 'Eastin',
        'house' => '5485',
        'street' => 'Warwick',
        'city' => 'Jerusalem',
        'state' => 'AR',
        'zip' => '72080',
        'phone' => '241-497-8807',
        'fax' => '241-421-0682',
        'mobile' => '241-329-9532',
        'ssn' => '798-86-0336',
        'birthday' => '1951-08-22',
        'hiredate' => '2006-01-08',
        'email' => 'aeastin@kimdrja.com',
      ),
    );
    if ($this->sort_by) {
      usort($this->data, array($this, '_sort'));
    }
    if (!$direction) {
      $this->data = array_reverse($this->data);
    }
  }
  protected function _sort($a, $b) {
    if ($a[$this->sort_by] === $b[$this->sort_by]) {
      return 0;
    }
    return ($a[$this->sort_by] < $b[$this->sort_by]) ? -1 : 1;
  }
  function getKeys() {
    return array_keys($this->data[0]);
  }
  function count() {
    return count($this->data);
  }
  function current() {
    return $this->data[$this->index];
  }
  function key() {
    return $this->index;
  }
  function next() {
    $this->index++;
  }
  function rewind() {
    $this->index = 0;
  }
  function seek($index) {
    $this->index = $index;
  }
  function valid() {
    return isset($this->data[$this->index]);
  }
}
